#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QLabel>
#include <QPushButton>
#include <QPainter>
#include <QFileDialog>
#include <QStringList>
#include <QList>
#include <QMimeDatabase>
#include <QMediaPlayer>
#include <QListWidget>
#include <QPropertyAnimation>
#include <QGraphicsDropShadowEffect>

#include <QSqlDatabase>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QAction>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

//    ui->widget->hide();


//    QPropertyAnimation* line1Animal = new QPropertyAnimation(ui->label, "geometry", ui->label);
//    QRect rect(ui->label->geometry());

//    qDebug() << ui->label->geometry();

//    line1Animal->setDuration(1500);
//    line1Animal->setKeyValueAt(0, QRect(0, rect.y() + rect.height(), rect.width(), 0));
//    line1Animal->setKeyValueAt(0.5, QRect(0, rect.y(), rect.width(), rect.height()));
//    line1Animal->setKeyValueAt(1, QRect(0, rect.y() + rect.height(), rect.width(), 0));
//    line1Animal->setLoopCount(-1);
//    line1Animal->start();

//    qDebug() << ui->label->geometry();
//    setWindowFlags(Qt::Popup | Qt::FramelessWindowHint); //| Qt::NoDropShadowWindowHint);
//    setAttribute(Qt::WA_TranslucentBackground);

//    ui->pushButton->setEnabled(false);

}

MainWindow::~MainWindow()
{
    delete ui;
}

